Skip to content

Fix: Prevent disabled users from browsing#1753

Merged
NeoRazorX merged 1 commit intomasterfrom
fix/disabled-user-access
Jul 6, 2025
Merged

Fix: Prevent disabled users from browsing#1753
NeoRazorX merged 1 commit intomasterfrom
fix/disabled-user-access

Conversation

@NeoRazorX
Copy link
Copy Markdown
Owner

Ensure that users who have been deactivated are immediately logged out and cannot continue to navigate the application.

Ensure that users who have been deactivated are immediately logged out and cannot continue to navigate the application.

Changes:
- Modified `Core/Base/Controller.php` in the `auth()` method.
- Added a check to verify if a user is `enabled` immediately after loading their data.
- If the user is disabled, their session cookie is cleared, and authentication fails.
- Added comments to the `auth()` method for clarity.
@NeoRazorX NeoRazorX merged commit 15822fa into master Jul 6, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant